home *** CD-ROM | disk | FTP | other *** search
- Path: JHANCOCK.COM!jschulman
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Newsgroups: comp.lang.rexx
- MIME-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
- Message-ID: <REXXLIST%96022813250349@UGA.CC.UGA.EDU>
- Date: Wed, 28 Feb 1996 13:25:55 EST
- Sender: REXX Programming discussion list <REXXLIST@uga.cc.uga.edu>
- From: Jonathan Schulman <jschulman@JHANCOCK.COM>
- Subject: Re: EXPOSE, INTERPRET & SYMBOL, bug or ANSI ?
-
- On Wed, 28 Feb 1996 12:02:14 GMT, Bill Wymond <wymond@IBM.NET> said:
- >While working on a function which allows easy 'passing' of stems,
- >some peculiarities came up and I hope that someone can explain
- >me the observed behaviour.
- >
- >The two points in question (they are remarked in the code sample
- >itself):
- >
- > 1) Why can't SYMBOL() in the sample return (correctly) 'VAR'
- > and not 'LIT', as it does?
- > (There is no error-message and a trace doesn't give any
- > hint to me.)
- ...snip...
-
- You didn't mention what TRACE you used, but 'TRACE I' does point the way
- in this situation.
-
- The following piece of your code:
- INTERPRET 'Init = SYMBOL(' FromStem || i ')'
-
- should be:
- INTERPRET 'Init = SYMBOL("'FromStem || i'")'
-
- The point being that the argument to SYMBOL should be the literal name
- of the variable (hence quoted), and not the variable itself. Hope this
- helps.
-
- Jonathan Schulman, John Hancock Mutual Life
- John Hancock Place, P.O. Box 111, Boston MA 02117
- jschulman@jhancock.com tel: (617) 572-8410
-